package com.scm.persist.mybatis;

import com.scm.persist.model.ScmProduct;
import com.scm.persist.model.ScmProductExample;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;

import java.util.List;

public interface ScmProductMapper {
    int countByExample(ScmProductExample example);

    int deleteByExample(ScmProductExample example);

    int deleteByPrimaryKey(Long id);

    int insert(ScmProduct record);

    int insertSelective(ScmProduct record);

    List<ScmProduct> selectByExampleWithRowbounds(ScmProductExample example, RowBounds rowBounds);

    List<ScmProduct> selectByExample(ScmProductExample example);

    ScmProduct selectByPrimaryKey(@Param("tenantId") Long tenantId,@Param("id") Long id);

    int updateByExampleSelective(@Param("record") ScmProduct record, @Param("example") ScmProductExample example);

    int updateByExample(@Param("record") ScmProduct record, @Param("example") ScmProductExample example);

    int updateByPrimaryKeySelective(ScmProduct record);

    int updateByPrimaryKey(ScmProduct record);
}